package display;

import java.awt.Color;

public class Utils {

	public static int sideWidth = 20; //taille en pixel d'un carré
	
	public static int gameDataDisplayWidth = 200;
	
	public static int bordureFrameHeight = 30;
	public static int bordureFrameWidth = 10;
	
	public static int getBoardWidthPx(){
		return universe.Utils.BOARD_WIDTH*sideWidth+bordureFrameWidth;
	}
	
	public static int getBoardHeightPx(){
		return (universe.Utils.BOARD_HEIGHT+1)*sideWidth+bordureFrameHeight;
	}
	
	public static int getBlockWidthPx(){
		return universe.Utils.BLOCK_WIDTH*sideWidth;
	}
	
	public static int getBlockHeightPx(){
		return universe.Utils.BLOCK_HEIGHT*sideWidth;
	}
	
 

	public static Color getColor(int pInt){
		Color returnedColor;
		switch (pInt){
			case 0 : returnedColor = Color.WHITE; break;
			case 1 : returnedColor = Color.ORANGE; break;
			case 2 : returnedColor = Color.RED ; break;
			case 3 : returnedColor = Color.CYAN ; break;
			case 4 : returnedColor = Color.GREEN ; break;
			case 5 : returnedColor = Color.BLUE ; break;
			case 6 : returnedColor = Color.PINK ; break;
			case 7 : returnedColor = new Color(127, 255, 0); break;
			default : returnedColor= Color.MAGENTA ;
		}
		return returnedColor;
	}

	
	
}
